
<%
/**
	左侧导航菜单
*/
%>
<%@page import="com.sad.model.SystemUser"%>
<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%
	String pageid = request.getParameter("pageid");
	String itemid = request.getParameter("itemid");
	SystemUser user = (SystemUser) session.getAttribute("user");
	if (user == null) {
		response.sendRedirect(request.getContextPath() + "/login");
	} 
%>

<div id="siderNav">
	<ul class="nav-items">
		<%-- <%if(user.isAdmin() || user.isBusiness() || user.isOperation()){ %> --%>
		<!-- <li id="item1" class="nav-item item-top"><span><a href="render?pageid=overview"><b class="icon item-1"></b>首页</a></span></li> -->

		<li id="item2" class="nav-item current-item on"><span><a><b class="icon item-2"></b>租赁管理</a></span>
			<ul class="sub-list">
				<li><a id="wish" href="render?pageid=wish" class="" page_id="Wish">预约列表</a></li>
				<li><a id="applyreturn" href="render?pageid=applyreturn" class="" page_id="Applyreturn">申请归还</a></li>
				<li><a id="orderback" href="render?pageid=orderback" page_id="Orderback">回库登记</a></li>
				<li><a id="reshelf" href="render?pageid=reshelf" page_id="Reshelf">重新上架</a></li>
			</ul></li>
			
		<%-- <%} %> --%>
		
		<%-- <%if(user.isAdmin() || user.isSystemManager()){ %> --%>
	<!-- 	<li id="item8" class="nav-item  item-bottom"><span><a><b class="icon item-8"></b>系统维护</a></span>
			<ul class="sub-list">
				<li><a id="userManager" href="render?pageid=userManager" page_id="User">用户管理</a></li>
			</ul></li> -->
		<%-- <% } %> --%>
	</ul>
</div>
<script type="text/javascript">
	var itemid = "<%=itemid%>";
	var pageid = "<%=pageid%>";
	if(itemid){
		$("#"+itemid).addClass("current-item on");
	}
		
	if(pageid){
		if($("#"+pageid))
			$("#"+pageid).addClass("current-item");
	}
</script>